var https = require('https');
var fs = require('fs');

var options = {
  key:fs.readFileSync('key.pem'),
  csr:fs.readFileSync('csr.pem')
};


var server = https.createServer(options,function (request,response) {
  response.writeHead(200,{"Content-Type":"text/html;charset=utf-8"});
  response.end('<div style="width:100px;height:100px;background:red"></div>');
}).listen(8000);
console.log('正在监听8000端口');
